package com.sudo.dao.admin.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@Table(name = "sys_auto_role")
public class SysAutoRole {
    @Id
    private Integer id;

    @Column(name = "username")
    private String username;

    @Column(name = "setup_role")
    private String setupRole;

    @Column(name = "expiry_role")
    private String expiryRole;

    @Column(name = "source")
    private String source;

    @Column(name = "expiration_time")
    private LocalDateTime expirationTime;

    // YES or NO
    @Column(name = "is_expired")
    private String isExpired;

    // 是否启用（ON/OFF）
    @Column(name = "status")
    private String status;
}
